﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AMS.DD35.WebMVP.Views;
using AMS.DD35.WebMVP.Models;

namespace AMS.DD35.WebMVP.Presenters
{
    public class LoginPresenter
    {
        ILoginView _view;
        ILoginModel _model;

        public LoginPresenter(ILoginView loginView, ILoginModel loginModel)
        {
            this._view = loginView;
            this._model = loginModel;
        }

        public void Login()
        {
            _model.Login(_view.UserName, _view.Password);
        }

        public void Logout()
        {
            _model.Logout();
        }
    }
}